#ifndef LOGINPAGEWIDGET_H
#define LOGINPAGEWIDGET_H

#include <QtCore/qglobal.h>

#if defined(LOGINPAGE_LIBRARY)
#define LOGINPAGE_EXPORT Q_DECL_EXPORT
#else
#define LOGINPAGE_EXPORT Q_DECL_IMPORT
#endif

#include <QWidget>
#include <QDebug>
#include "../NetWorkMgr/networkmgr.h"


QT_BEGIN_NAMESPACE
namespace Ui {
class Widget;
}
QT_END_NAMESPACE

class LOGINPAGE_EXPORT LoginPageWidget : public QWidget
{
    Q_OBJECT

public:
    LoginPageWidget(QWidget *parent = nullptr);
    ~LoginPageWidget();

private slots:
    void on_btnlogin_clicked();

public slots:
    void LoginDone(const QJsonObject &jsResult);

signals:
    void LoginSuccess();

private:
    Ui::Widget *ui;

};
#endif // LOGINPAGEWIDGET_H
